﻿namespace demo16_try_catch
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            int a = 10;
            //int b = a / 0;
            try
            {
                int b = a / 0;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            finally
            {
                Console.WriteLine("finally里面的代码");
            }
            //Console.WriteLine("哈哈哈");
        }
    }
}
